package com.example.hellospringbootstarterautoconfigure.service;

import com.example.hellospringbootstarterautoconfigure.properties.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author: lfh
 * @date: 2024/3/26 20:56
 * @Version: 1.0
 * @description:
 */
public class HelloService {

    /**
     * 配置属性
     */
    @Autowired
    HelloProperties helloProperties;


    public String sayHello(String name){
        return helloProperties.getPrefix() + name + helloProperties.getSuffix();
    }
}

